public class Test01 {
    public static void main(String[] args) {
        //创建线程
        Thread t1 = new Thread();
        Thread t2 = new Thread(new Runnable() {
            @Override
            public void run() {

            }
        });
        Thread t3 = new Thread("明志");
        Thread t4 = new Thread(new Runnable() {
            @Override
            public void run() {
                while (true){
                    System.out.println("hello");
                }
            }
        }, "明志");

        t4.start();
    }
}
